package com.dwd.servicemanager.mapper;

import com.dwd.basic.mapper.BaseMapper;
import com.dwd.servicemanager.pojo.Product;
import com.dwd.servicemanager.pojo.ProductDetail;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description: TODO
 * @Author 汶狄
 * @Date 2021/1/21 15:23
 * @Version 1.0
 */
@Repository
@Mapper
public interface ProductDetailMapper extends BaseMapper<ProductDetail> {
    /**
     * 根据productid删除详情
     * @param id
     */
    void deleteByProductId(Long id);

    /**
     * 批量删除
     * @param products
     */
    void batchDelete(List<Product> products);
}
